# JS API
附上高德开放平台的JS API链接,仅供参考,企业用户可根据实际业务需要自由选用。
# 1、点位上图
# 1.1 行政区划聚合显示
行政区划聚合鼠标事件:https://lbs.amap.com/api/loca-api/demos/districtlayer/loca_dist_getstatus
# 1.2 散点图
- 点标记:https://lbs.amap.com/api/javascript-api/example/marker/marker-content
- 自定义图标:https://lbs.amap.com/api/javascript-api/example/marker/custom-icon
- 圆点标记:https://lbs.amap.com/api/javascript-api/example/marker/circlemarker
- 自定义点标记内容:https://lbs.amap.com/api/javascript-api/example/marker/custom-icon-content
- 设置点标注的文本标签:https://lbs.amap.com/api/javascript-api/example/marker/set-marker-text-label
- 自适应显示多个点标记:https://lbs.amap.com/api/javascript-api/example/marker/adaptive-show-multiple-markers
- 删除多个点标记:https://lbs.amap.com/api/javascript-api/example/marker/delete-multiple-markers
- 从多个点中删除指定点:https://lbs.amap.com/api/javascript-api/example/marker/delet-specified-marker-from-multiple-markers
- 点聚合:https://lbs.amap.com/api/javascript-api/example/marker/markerclusterer
- 设置点的拖拽效果:https://lbs.amap.com/api/javascript-api/example/marker/set-marker-draggable
- 设置点的弹跳效果:https://lbs.amap.com/api/javascript-api/example/marker/set-marker-bouncing
- 加载海量点:https://lbs.amap.com/api/javascript-api/example/marker/massmarks
# 1.3 分类图
# 1.4 热力图
- 2D热力图:https://lbs.amap.com/api/loca-api/demos/loca_heatmap/loca_heatmap_3d
- 网格热力图:https://lbs.amap.com/api/loca-api/demos/gridlayer/loca_heatmap_rectangle_2d
- 蜂窝热力图:https://lbs.amap.com/api/loca-api/demos/hexagonlayer/loca_heatmap_hexagon_3d
# 2、区块上图
# 2.1 绘制面&配置颜色
- 绘制矢量图形:https://lbs.amap.com/api/javascript-api/example/overlayers/overlay-draw
- 绘制覆盖物:https://lbs.amap.com/api/javascript-api/example/mouse-operate-map/mouse-draw-overlayers
# 2.2 编辑面节点
- 多边形绘制和编辑:https://lbs.amap.com/api/javascript-api/example/overlayers/polygon-draw-and-edit
- 矩形绘制和编辑:https://lbs.amap.com/api/javascript-api/example/overlayers/rectangle-draw-and-edit
- 圆的绘制和编辑:https://lbs.amap.com/api/javascript-api/example/overlayers/circle-draw-and-edit
- 椭圆的绘制和编辑:https://lbs.amap.com/api/javascript-api/example/overlayers/ellipse-draw-and-edit
# 2.3 自动吸附节点
多边形编辑器吸附功能:https://lbs.amap.com/api/jsapi-v2/example/overlay-editor/polygon-editor-avoidpolygon